from rest_framework.viewsets import ModelViewSet

from goods.models import Brand
from meiduo_admin.serializers.brands import GoodsBrandsSerialzier
from meiduo_admin.utils import PageNum

# 品牌表表管理
class GoodsBrandsView(ModelViewSet):
    serializer_class = GoodsBrandsSerialzier
    queryset = Brand.objects.all()
    pagination_class = PageNum